#include "stdafx.h"

#if _WIN32_WCE==211

#if _SH4_

extern "C" LONG core200_InterlockedCompareExchange(
  LPLONG Destination, 
  LONG Exchange, 
  LONG Comperand
)
{
	LONG dest = *Destination;
	if ( dest == Comperand )
		*Destination = Exchange;

	return dest;
}

extern "C" BOOL core200_DisableThreadLibraryCalls( HMODULE hLibModule )
{
	return false;
}

#endif

#endif // _WIN32_WCE==211
